package com.hh.utils;

import com.hh.constant.CollectConstant;
import com.hh.constant.ThumbConstant;

/**
 * @author: hh
 * @Date: 2025/7/30 16:27
 */

public class RedisKeyUtil {
  
    public static String getUserThumbKey(Long userId) {  
        return ThumbConstant.USER_THUMB_KEY_PREFIX + userId;
    }  
  
    /**  
     * 获取 临时点赞记录 key  
     */  
    public static String getTempThumbKey(String time) {  
        return ThumbConstant.TEMP_THUMB_KEY_PREFIX.formatted(time);  
    }  

    public static String getUserCollectKey(Long userId) {return CollectConstant.COLLECT_KEY_PREFIX + userId;}

    public static String getTempCollectKey(String time) {return CollectConstant.TEMP_COLLECT_KEY_PREFIX.formatted(time);}
}
